package com.manor.common.constant

import com.manor.common.utils.SharedPreferencesUtils

class UserInfoUtil {
    companion object{
        /**
         * 用户昵称
         */
        fun getUserNickName() = SharedPreferencesUtils.getData(SharedPreferenceKey.USER_NAME, "") as String
        /**
         * 用户id
         */
        fun getUserId() = SharedPreferencesUtils.getData(SharedPreferenceKey.USER_ID, "") as String
        /**
         * 当前登录的手机号
         */
        fun getPhone() = SharedPreferencesUtils.getData(SharedPreferenceKey.PHONE, "") as String
    }
}
